#ifndef __DISPLAY_MANAGER_H__
#define __DISPLAY_MANAGER_H__

typedef struct displayOpr
{
	int width;
	int height;
	int pixel;
	int lineSize;
	char *name;
	int (*displayDeviceInit)(void);
	int (*displayDeviceExit)(void);
	int (*displayDeviceClear)(unsigned int color);
	int (*displayShowPixel)(int x, int y, unsigned int color);
	int (*displayDeviceClearArea)(int xStart,int yStart, int xEnd, int yEnd, unsigned int color);
	int (*displayDrawLine)(int xStart,int yStart, int lenth, int blod, unsigned int color);
	unsigned char *(*getDisplayMmap)(void);
	struct displayOpr *next;
}T_displayOpr, *PT_displayOpr;

int registerDisplayOpr(PT_displayOpr ptDisplayOpr);
void showDisplayOpr(void);
PT_displayOpr getDisplayOpr(char *name);
int displayInit(void);
int displayExit(void);


int fbInit(void);

#endif


